package siberia.object;

public class IntObj implements Obj {
    private int value;

    public IntObj(int value) {
        this.value = value;
    }

    public int getIntValue() {
        return value;
    }

    public float getFloatValue() {
        return (float) value;
    }

    public boolean getBoolValue() {
        return value != 0;
    }

    public String getStringValue() {
        return String.valueOf(value);
    }

    public ObjType type() {
        return ObjType.IntObj;
    }
}
